package org.dromara.system.service;

import org.dromara.common.core.domain.R;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.system.domain.WbCompanyInfo;
import org.dromara.system.domain.WbMinuteBidBag;
import org.dromara.system.domain.bo.WbCompanyBidBagBO;
import org.dromara.system.domain.bo.WbCompanyInfoBo;
import org.dromara.system.domain.dto.WbCompanyBidBagDTO;
import org.dromara.system.domain.dto.WbPlantEquipmentDTO;
import org.dromara.system.domain.vo.WbCompanyBlacklistVo;
import org.dromara.system.domain.vo.WbCompanyInfoVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 公司Service接口
 *
 * @author Lion Li
 * @date 2024-03-22
 */
public interface IWbCompanyInfoService {

    /**
     * 查询公司
     */
    WbCompanyInfoVo queryById(Long id);

    /**
     * 查询公司列表
     */
    TableDataInfo<WbCompanyInfoVo> queryPageList(WbCompanyInfoBo bo, PageQuery pageQuery);

    /**
     * 查询公司列表
     */
    List<WbCompanyInfoVo> queryList(WbCompanyInfoBo bo);

    /**
     * 新增公司
     */
    Boolean insertByBo(WbCompanyInfoBo bo);

    /**
     * 修改公司
     */
    Boolean updateByBo(WbCompanyInfoBo bo);

    /**
     * 校验并批量删除公司信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    TableDataInfo<WbCompanyBidBagDTO> queryMinBidBagList(WbCompanyBidBagBO bo, PageQuery pageQuery,int flag);


    R upload(WbCompanyInfoBo bo, MultipartFile[] files);


    TableDataInfo<WbPlantEquipmentDTO> queryPlantEquipment(Long companyId, PageQuery pageQuery);

    TableDataInfo<WbMinuteBidBag> queryMinBidBagListOne(WbCompanyBidBagBO bo, PageQuery pageQuery);

    /**
     * 自定义根据ID查询
     * @param id
     * @return
     */
    WbCompanyInfoVo queryByIdZdy(Long id);

    /**
     * 查询公司详细信息
     * @param id
     * @return
     */
    WbCompanyInfoVo queryDetailsById(Long id);

    TableDataInfo<WbCompanyBidBagDTO> queryMinBidBagListZYT(String name,Long id, PageQuery pageQuery);

    TableDataInfo<WbCompanyInfoVo> queryPageList_xcx(WbCompanyInfoBo bo, PageQuery pageQuery);


    WbCompanyInfoVo queryPageList_xcx_ZYT(Long enterpriseId);

    TableDataInfo<Map> listMinBidBag1(WbCompanyInfoBo bo,Long provinceId, String itemName, String year ,PageQuery pageQuery);

    TableDataInfo<WbCompanyInfoVo> queryPageListZ(WbCompanyInfoBo bo, PageQuery pageQuery);

    List<WbCompanyInfo> queryByName(String companyName);

    void handleName(String candidate);


    void mergeDataByCandidate(String candidate);
}
